#include "bsp_laser.h"
#include "gpioconfig.h"
#include "update.h"
void Laser_show(laser_data_t *data)
{
    //调试信息
    printf("目标个数: %d\n", data->target_count);
    printf("首目标距离: %d cm\n", data->first_distance);
    printf("末目标距离: %d cm\n", data->end_distance);
    printf("出光次数: %d\n", data->light_emission_count);
    printf("测距状态: ");
    switch (data->measure_status) 
    {
        case 0xF2:  printf("单次测距\n");        break;
        case 0xF3:  printf("1Hz测距\n");        break;
        case 0xF4:  printf("5Hz测距\n");        break;
        case 0xF5:  printf("停止测距\n");       break;
        default:    printf("未知状态\n");       break;
    }
}


